//
//  TVConfig.swift
//  TVNaraSwift
//
//  Created by 丁巍 on 2020/4/12.
//  Copyright © 2020 丁巍. All rights reserved.
//

//  各种配置项

import UIKit


/************ 屏幕size 相关 ************/
@available(iOS 13.0, *)
public let TVWindow      = UIApplication.shared.connectedScenes;
 
public let SCRREN_FRAME  = UIScreen.main.bounds;
 
public let SCREEN_HEIGHT = UIScreen.main.bounds.size.height;
 
public let SCREEN_WIDTH  = UIScreen.main.bounds.size.width;
 
public let iPhoneX       = UIApplication.shared.statusBarFrame.size.height > 20 ? true : false;
public let iPhone5     = (SCREEN_HEIGHT == 548.0);
public let iPhone6     = (SCREEN_HEIGHT == 667.0);
public let iPhonePlus  = (SCREEN_WIDTH  >= 414.0);

// 页面整体头部高度
public let TOP_HEIGHT                     = STATUSBAR_HEIGHT + NAVIGATIONBAR_HEIGHT;
public let STATUSBAR_HEIGHT: CGFloat      = iPhoneX ? 44.0 : 20.0;
public let NAVIGATIONBAR_HEIGHT: CGFloat  = 44.0;
public let TABBAR_HEIGHT: CGFloat         = iPhoneX ? 83.0 : 49.0;
public let HOME_INDICATOT_HEIGHT: CGFloat = iPhoneX ? 34.0 : 0.0;
public let SPACING: CGFloat               = 16.0;

// 缩放比 6s
public let scaleW:CGFloat = SCREEN_WIDTH / 375.0
public let scaleH:CGFloat = SCREEN_HEIGHT / 667.0
